//
//  TabBar.swift
//  SwiftQiushi
//
//  Created by ch on 2020/10/16.
//  Copyright © 2020 ch. All rights reserved.
//

import UIKit

class TabBar: UITabBar {

    override func layoutSubviews() {
        super.layoutSubviews()
        
        //过滤
        for button in subviews where button is UIControl {
            //tabBarItem上移一点
            var frame = button.frame
            frame.origin.y = -2
            button.frame = frame
        }
    }

}
